﻿using System;
using System.Collections.Generic;

namespace GUITree
{
	// Token: 0x020004B3 RID: 1203
	internal static class ListPool<T>
	{
		// Token: 0x06001E1C RID: 7708 RVA: 0x000BEBDC File Offset: 0x000BCDDC
		public static List<T> Get()
		{
			return ListPool<T>.s_ListPool.Get();
		}

		// Token: 0x06001E1D RID: 7709 RVA: 0x000BEBE8 File Offset: 0x000BCDE8
		public static void Release(List<T> toRelease)
		{
			ListPool<T>.s_ListPool.Release(toRelease);
		}

		// Token: 0x04002089 RID: 8329
		private static readonly ObjectPool<List<T>> s_ListPool = new ObjectPool<List<T>>(null, delegate(List<T> l)
		{
			l.Clear();
		});
	}
}
